core: Remove old "archive" mode
authorColin Walters <walters@verbum.org>
Thu, 15 Aug 2013 10:34:48 +0000 (06:34 -0400)
committerColin Walters <walters@verbum.org>
Sat, 17 Aug 2013 02:56:42 +0000 (22:56 -0400)
commit1ec7c304086c14fe0540d9c371b66f64a7a81b2e
tree714d82ee929da3a8e4cb73b43a9fbf8e51715ac3
parent17560a57bf9b11def629667a446878182155d9a2
core: Remove old "archive" mode

We'll always have "bare" mode for keeping files-as-hardlinks as root.
But "archive" was my second attempt at a format for non-root file
storage, used by the gnome-ostree buildsystem which runs as non-root.

It was really handy to have a "tar" like mode where I can create
tarballs as a user, that contain files owned by root for example.

The "archive" mode stored content files as two pieces in the
filesystem; ".file" contained metadata, and ".filecontent" was the
actual content, uncompressed.  The nice thing about this was that to
check out a tree as non-root, you could just hardlink into the repo.

However, archive was fairly bad for serving via HTTP; it required
*two* HTTP requests per content object, greatly magnifing the already
inefficient fetch process.  So "archive-z2" was introduced.

To allow gnome-ostree to still check out trees as a user, the
"uncompressed-object-cache" was introduced, and that's how things have
been working for a while.

So we should just be able to kill this code.  Specifically note just
how much better the stage_object() function became.

https://bugzilla.gnome.org/show_bug.cgi?id=706057
Makefile-tests.am
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
tests/test-archive.sh [deleted file]